package org.jeecg.modules.system.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysRolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色权限表 Mapper 接口
 * </p>
 *
 * @Author scott
 * @since 2018-12-21
 */
public interface SysRolePermissionMapper extends BaseMapper<SysRolePermission> {


    @SqlParser(filter = true)
    List<SysRolePermission> queryServerPermissionIds(@Param("tenantId") String tenantId,@Param("roleId") String roleId);
    @SqlParser(filter = true)
    void saveServerBatch(@Param("list") List<SysRolePermission> list);
    @SqlParser(filter = true)
    void delServerBatch(@Param("tenantId") String tenantId,@Param("roleId") String roleId,@Param("permissionIds") List<String> delPermissionIds);
}
